package com.photobucket.webapi.events
{
	import com.photobucket.webapi.interfaces.IMedia;
	
	import flash.events.Event;

	public class MediaEvent extends Event
	{
		
		public static const DELETE:String = "deleteMedia";
		public static const MOVE:String = "moveMedia";
		public static const CANCEL_DELETE:String = "cancelDeleteMedia";
		public static const CANCEL_MOVE:String = "cancelMoveMedia";
		
		public var media:IMedia;
		
		/**
		 * Event for passing around media obects 
		 * @param type
		 * @param media
		 * @param bubbles
		 * @param cancelable
		 * 
		 */
		public function MediaEvent(type:String, media:IMedia, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.media = media;
		}
		
	}
}